#ifndef __CONFIG_H
#define __CONFIG_H



#define CFG_USE_MOTOR  1
#define CFG_USE_PRESS1  1
#define CFG_USE_PRESS2  1


#define CFG_PRESS1_CH ADC_CH_4
#define CFG_PRESS2_CH ADC_CH_5


#define HEART_LED_PORT GPIOC
#define HEART_LED_PIN GPIO_PIN_13

#define LED1_PORT GPIOB
#define LED1_PIN GPIO_PIN_3


#define ESP8266_ONENET_INFO "AT+CIPSTART=\"TCP\",\"mqtts.heclouds.com\",1883"

#define WIFI_SSID "ZTE-KkzQ9X"
#define WIFI_PWD "cygzll0216"
#define TCP_SERVER_IP "192.168.1.100"
#define TCP_SERVER_PORT "6000"

#define PROID "o4beM66apm"

// #define ACCESS_KEY ? ? ? "MGcwZGoyWWNJclRhT0ZCcWw3Y2RlWFNxenpaRlJZNjk="
#define ACCESS_KEY "version=2018-10-31&res=products%2Fo4beM66apm%2Fdevices%2FDEV_001&et=1909115995&method=sha1&sign=Am%2F%2BlJkvhRtS%2Bst6bbb94cH%2FTwA%3D"
#define DEVICE_NAME "DEV_001"


#define CFG_TASK_PERIOD_SLAVE_SI    10
#define CFG_TASK_PERIOD_SLAVE_SO    100
#define CFG_TASK_PERIOD_SLAVE_CI    50
#define CFG_TASK_PERIOD_SLAVE_CO    20

#define CFG_TASK_PERIOD_MAIN_SI    50
#define CFG_TASK_PERIOD_MAIN_SO    10000
#define CFG_TASK_PERIOD_MAIN_CI    50
#define CFG_TASK_PERIOD_MAIN_CO    500
#endif
